import { post } from "@/packages/http/request.ts";

export const getRoleList = (params: any): any => {
  return post("/role/getRoles", params, {}, true);
};

export const delRole = (params: any): any => {
  return post("/role/delRole", params, {}, true);
};

export const addRole = (params: any): any => {
  return post("/role/addRole", params);
};

export const updateRole = (params: any): any => {
  return post("/role/updateRole", params, {}, true);
};
